'''
Description: 
version: 
Author: aps.auto
Date: 2024-06-26 11:39:40
LastEditors: Luoxl
LastEditTime: 2024-07-02 08:39:50
'''
from ultralytics import YOLO
import ultralytics
import torch
import numpy as np

# Load a model
model = ultralytics.YOLO("yolov8n-seg.pt")  # load an official model
model = ultralytics.YOLO("D:/BaiduSyncdisk/Projects/yolov8-segment/yolov8n-seg-AGI.pt")  # load a custom model
result = model.export(format='onnx') #yolov8原生转换